From bec98603f540df827009a761b931e9068e6599d4 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 6 Feb 2007 23:10:05 +0000 Subject: [PATCH] Fix up xentrace record extraction in xentrace_format for 64-bit architectures. Signed-off-by: Thomas Friebel --- tools/xentrace/xentrace_format | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/xentrace/xentrace_format b/tools/xentrace/xentrace_format index 537785824a..36536c24a6 100644 --- a/tools/xentrace/xentrace_format +++ b/tools/xentrace/xentrace_format @@ -107,6 +107,9 @@ while not interrupted: (tsc, event, d1, d2, d3, d4, d5) = struct.unpack(TRCREC, line) + # Event field is 'uint32_t', not 'long'. + event &= 0xffffffff + #tsc = (tscH<<32) | tscL #print i, tsc -- 2.30.2